﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="prototype._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource2">
        <Columns>
            <asp:BoundField DataField="BrandName" HeaderText="BrandName" 
                SortExpression="BrandName" />
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="Details.aspx?ID={0}" 
                HeaderText="Phone Name" DataTextField="PhoneName" />
            <asp:ImageField DataImageUrlField="Picture" HeaderText="Pictures">
                <ControlStyle Height="50px" Width="50px" />
<ControlStyle Height="150px" Width="150px"></ControlStyle>
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PrototypeConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:PrototypeConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [Phones]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
    <br />
</p>
<p>
</p>
<p>
</p>
</asp:Content>
